import com.james.po.Sysuser;
import com.james.service.img.SysuserService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class Tess {
    @Test
    public void  s(){
        ClassPathXmlApplicationContext ps=new ClassPathXmlApplicationContext("spring-mybatis.xml","spring-service.xml");
        SysuserService bean = ps.getBean(SysuserService.class);
        List<Sysuser> sysuserall = bean.sysuserall();
        for (Sysuser s:sysuserall){
            System.out.println(s);
        }
    }
}
